<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2007-9-9
  Time: 22:31:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglib.jsp" %>
<html>
<head><title>新建文章</title>
</head>
<body>
<table width="98%" border="1" align="center" cellpadding="0" cellspacing="0">
    <s:form action="/admin/articleManage.do" method="post" name="news">

        <tr align="center">
            <td height="23" colspan="2">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="25" align="center"><font color="#FFFFFF"><strong>添加文章</strong></font>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr align="center">
            <td width="16%" height="30">所属分类<br></td>
            <td width="84%" align="left">&nbsp;&nbsp;栏目：
                <s:select name="article.catalog.id" id="catalogId">
                    <s:option value="0">请选择栏目...</s:option>
                    <c:forEach items="${actionBean.catalogs}" var="catalog">
                        <s:option value="${catalog.id}">□-${catalog.name}</s:option>
                        <c:if test="${not empty catalog.childs}">
                            <c:forEach items="${catalog.childs}" var="child">
                                <s:option value="${child.id}">....${child.name}</s:option>
                            </c:forEach>
                        </c:if>
                    </c:forEach>
                </s:select>

            </td>
        </tr>
        <tr align="left">
            <td height="25" align="center">作者&nbsp; </td>
            <td height="25"> &nbsp; <s:text size="20" name="article.authorName"/>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 原创: <s:radio  name="article.fromType" value="0" checked="0"/> &nbsp;
                转载： <s:radio  name="article.fromType" value="1"/></td>
        </tr>
        <tr align="center">
            <td height="28">文章标题&nbsp; </td>
            <td height="28" align="left">&nbsp; <s:text name="article.title" size="30"/></td>
        </tr>
        <tr align="center">
            <td height="28">出处<br></td>
            <td align="left">&nbsp; <s:text name="article.fromSite" size="25"/>
            </td>
        </tr>
        <tr align="center">
            <td height="28">出处地址<br></td>
            <td align="left">&nbsp; <s:text name="article.fromUrl" size="25"/>
            </td>
        </tr>
        <tr align="center">
            <td height="28">连接到它处<br></td>
            <td align="left">&nbsp; <s:text name="article.linkToOther" size="25"/>
            </td>
        </tr>
        <tr align="center">
            <td height="140">文章摘要</td>
            <td align="left">&nbsp; <s:textarea rows="8" name="article.subject" cols="60"/>
            </td>
        </tr>
        <tr align="center">
            <td height="190">文章内容</td>
            <td align="left">&nbsp; <s:textarea rows="12" name="article.content" cols="60" style="display:none"/>
                <iframe ID="Editor" name="Editor" src="/editor/index.html?ID=article.content" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:320px;width:70%"></iframe>
            </td>
        </tr>
        <tr align="center">
            <td height="26" colspan="2">
                <table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td colspan="2" align="center">
                            <s:checkbox name="article.showOnIndex" value="true" checked="true"></s:checkbox>显示在首页&nbsp;
                            <s:checkbox name="article.recommed" value="true" checked="true"></s:checkbox>推荐文章
                            <s:hidden name="article.id"/>
                            <s:hidden name="article.createTime" formatPattern="yyyy-MM-dd kk:mm:ss"/>
                            &nbsp; <s:submit name="addArticle" value="${param.id>0?'修改':'新建'}"/>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" value="重置">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>

    </s:form>
</table>

</body>
</html>